package com.newsee.remote.common.database.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liangzhichen
 * @since 2019-11-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SH_SAPCostCenter")
public class ShSapcostcenter extends Model<ShSapcostcenter> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    @TableField("CostCode")
    private String CostCode;

    @TableField("CostName")
    private String CostName;

    @TableField("ParentCostCode")
    private String ParentCostCode;

    @TableField("OrganizationType")
    private String OrganizationType;

    @TableField("TaxCompanyType")
    private String TaxCompanyType;

    @TableField("CostState")
    private Integer CostState;

    @TableField("CreateTime")
    private LocalDateTime CreateTime;

    @TableField("UpdateTime")
    private LocalDateTime UpdateTime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
